var express = require('express');
var router = express.Router();
var connection = require('../db/sql.js');
var user = require('../db/UserSql.js');
//验证码
let code = '';
//接入短信的sdk
var QcloudSms = require("qcloudsms_js");

router.all('*', function(req, res, next) {
	res.header('Access-Control-Allow-Origin', '*');
	//Access-Control-Allow-Headers ,可根据浏览器的F12查看,把对应的粘贴在这里就行
	res.header('Access-Control-Allow-Headers', 'Content-Type');
	res.header('Access-Control-Allow-Methods', '*');
	res.header('Content-Type', 'application/json;charset=utf-8');
	next();
});


/* GET home page. */
router.get('/', function(req, res, next) {
	res.render('index', {
		title: 'Express'
	});
});
//注册===>增加一条数据
router.post('/api/addUser', function(req, res, next) {
	//前端给后端的数据
	let params = {
		userName: req.body.userName,
		userCode: req.body.code
	};
	if (params.userCode == code) {
		connection.query(user.insertData(params), function(error, results, fields) {
			res.send({
				data: {
					success: true,
					msg: "注册成功"
				}
			})
		})
	}

})

//发送验证码
router.post('/api/code', function(req, res, next) {
	//前端给后端的数据
	let params = {
		userName: req.body.userName
	};
	// 短信应用 SDK AppID
	var appid = 1400187558; // SDK AppID 以1400开头
	// 短信应用 SDK AppKey
	var appkey = "dc9dc3391896235ddc2325685047edc7";
	// 需要发送短信的手机号码
	var phoneNumbers = [params.userName];
	// 短信模板 ID，需要在短信控制台中申请
	var templateId = 298000; // NOTE: 这里的模板ID`7839`只是示例，真实的模板 ID 需要在短信控制台中申请
	// 签名
	var smsSign = "三人行慕课"; // NOTE: 签名参数使用的是`签名内容`，而不是`签名ID`。这里的签名"腾讯云"只是示例，真实的签名需要在短信控制台申请
	// 实例化 QcloudSms
	var qcloudsms = QcloudSms(appid, appkey);
	// 设置请求回调处理, 这里只是演示，用户需要自定义相应处理回调
	function callback(err, ress, resData) {
		if (err) {
			console.log("err: ", err);
		} else {
			code = ress.req.body.params[0];
			res.send({
				data: {
					success: true,
					code: code
				}
			})
		}
	}
	var ssender = qcloudsms.SmsSingleSender();
	var paramss = [Math.floor(Math.random() * (9999 - 1000)) + 1000]; //发送的验证码
	ssender.sendWithParam("86", phoneNumbers[0], templateId,
		paramss, smsSign, "", "", callback);

})

//注册验证手机号是否存在
router.post('/api/registered', function(req, res, next) {

	//前端给后端的数据
	let params = {
		userName: req.body.phone
	};
	//查询手机号是否存在
	connection.query(user.queryUserName(params), function(error, results, fields) {
		if (results.length > 0) {
			res.send({
				data: {
					success: false,
					msg: "手机号已经存在"
				}
			})
		} else {
			res.send({
				data: {
					success: true
				}
			})
		}
	})

})

//用户登录
router.post('/api/login', function(req, res, next) {

	//前端给后端的数据
	let params = {
		userName: req.body.userName,
		userPwd: req.body.userPwd
	}
	//查询用户名或者手机号存在不存在
	connection.query(user.queryUserName(params), function(error, results, fields) {
		if (results.length > 0) {
			connection.query(user.queryUserPwd(params), function(err, result) {
				if (result.length > 0) {
					res.send({
						data: {
							success: true,
							msg: "登录成功",
							data: result[0]
						}
					})
				} else {
					res.send({
						data: {
							success: false,
							msg: "密码不正确"
						}
					})
				}
			})
		} else {
			res.send({
				data: {
					success: false,
					msg: "用户名或手机号不存在"
				}
			})
		}
	})
});


router.get('/api/goods/id', function(req, res, next) {
	let id = req.query.id;
	connection.query("select * from goods_search where id=" + id + "", function(error, results, fields) {
		if (error) throw error;
		res.send({
			code: "0",
			data: results
		})
	});
});



router.get('/api/goods/list', function(req, res, next) {
	res.json({
		code: 0,
		data: [{
				id: 1,
				name: "家居家纺",
				data: [{
						name: "家纺",
						list: [{
								id: 1,
								name: "毛巾/浴巾",
								imgUrl: "../../static/img/maojin.jpg"
							},
							{
								id: 2,
								name: "枕头",
								imgUrl: "../../static/img/zhentou.jpg"
							},
							{
								id: 3,
								name: "被子",
								imgUrl: "../../static/img/beizi.jpg"
							},
							{
								id: 4,
								name: "四件套",
								imgUrl: "../../static/img/sjt.jpg"
							},
							{
								id: 5,
								name: "窗帘",
								imgUrl: "../../static/img/cl.jpg"
							},
							{
								id: 6,
								name: "地毯",
								imgUrl: "../../static/img/ditan.jpg"
							}
						]
					},
					{
						name: "生活日用",
						list: [{
								id: 1,
								name: "雨伞雨具",
								imgUrl: "../../static/img/yusan.jpg"
							},
							{
								id: 2,
								name: "梳子",
								imgUrl: "../../static/img/shuzi.jpg"
							},
							{
								id: 3,
								name: "洗漱杯",
								imgUrl: "../../static/img/xishu.jpg"
							},
							{
								id: 4,
								name: "化妆镜",
								imgUrl: "../../static/img/jing.jpg"
							},
							{
								id: 5,
								name: "火机烟具",
								imgUrl: "../../static/img/yan.jpg"
							},
							{
								id: 6,
								name: "指甲刀",
								imgUrl: "../../static/img/zhijia.jpg"
							}
						]
					}
				]
			},
			{
				id: 2,
				name: "女装",
				data: [{
						name: "裙装",
						list: [{
								id: 1,
								name: "半身裙",
								imgUrl: "../../static/img/banshen.jpg"
							},
							{
								id: 2,
								name: "连衣裙",
								imgUrl: "../../static/img/lianyi.jpg"
							},
							{
								id: 3,
								name: "旗袍",
								imgUrl: "../../static/img/qipao.jpg"
							}
						]
					},
					{
						name: "上衣",
						list: [{
								id: 1,
								name: "T恤",
								imgUrl: "../../static/img/tx.jpg"
							},
							{
								id: 2,
								name: "衬衫",
								imgUrl: "../../static/img/chenshan.jpg"
							},
							{
								id: 3,
								name: "卫衣",
								imgUrl: "../../static/img/weiyi.jpg"
							}
						]
					},
					{
						name: "裤子",
						list: [{
								id: 1,
								name: "短裤",
								imgUrl: "../../static/img/duanku.jpg"
							},
							{
								id: 2,
								name: "休闲裤",
								imgUrl: "../../static/img/xxk.jpg"
							},
							{
								id: 3,
								name: "牛仔裤",
								imgUrl: "../../static/img/nzk.jpg"
							}
						]
					}
				]
			},
			{
				id: 3,
				name: "家用电器",
				data: [{
						name: "电视",
						list: [{
								id: 1,
								name: "游戏电视",
								imgUrl: "../../static/img/ds1.jpg"
							},
							{
								id: 2,
								name: "艺术电视",
								imgUrl: "../../static/img/ds2.jpg"
							},
							{
								id: 3,
								name: "k歌电视",
								imgUrl: "../../static/img/ds3.jpg"
							}
						]
					},
					{
						name: "空调",
						list: [{
								id: 1,
								name: "新风空调",
								imgUrl: "../../static/img/kt1.jpg"
							},
							{
								id: 2,
								name: "变频空调",
								imgUrl: "../../static/img/kt2.jpg"
							},
							{
								id: 3,
								name: "中央空调",
								imgUrl: "../../static/img/kt3.jpg"
							}
						]
					},
					{
						name: "洗衣机",
						list: [{
								id: 1,
								name: "滚筒洗衣机",
								imgUrl: "../../static/img/xyj1.jpg"
							},
							{
								id: 2,
								name: "洗烘一体机",
								imgUrl: "../../static/img/xyj2.jpg"
							},
							{
								id: 3,
								name: "波轮洗衣机",
								imgUrl: "../../static/img/xyj3.jpg"
							}
						]
					}
				]
			}
		]
	})
});



router.get("/api/goods/search", function(req, res, next) {
	//desc降序     asc升序
	//获取对象的key
	let [goodsName, orderName] = Object.keys(req.query);
	//name参数的值
	let name = req.query.name;
	//orderName的key的值
	let order = req.query[orderName];

	connection.query("select * from goods_search where name like '%" + name + "%' order by " + orderName + " " +
		order + "",
		function(error, results, fields) {
			if (error) throw error;
			res.send({
				code: "0",
				data: results
			})
		});

});



//首次第一次触底的数据
router.get('/api/index_list/1/data/2', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
			type: "commodityList",
			data: [{
						"id": 6,
						"imgUrl": "../../static/img/qixing.jpg",
						"name": "EG7山地自行车成人学生变速越野单车双减震赛车26寸青少年男女 顶配升级款-黑白色【辐条轮】 26寸21速【适合：160-180CM】",
						"pprice": "399",
						"oprice": "559",
						"discount": "5.0"
					},
					{
						"id": 5,
						"imgUrl": "../../static/img/taiqou.jpg",
						"name": "（上门安装）中式黑八大理石台球桌俱乐部台球厅商用标准型台球桌 9尺 大理石台面 金色豪配",
						"pprice": "1499",
						"oprice": "3759",
						"discount": "5.2"
					},
					{
						"id": 7,
						"imgUrl": "../../static/img/cfy.jpg",
						"name": "骆驼户外冲锋衣三合一可拆卸黑色百搭男女情侣登山服防风防水休闲外套保暖 CA6268灰色加绒三合一男款 2XL",
						"pprice": "369",
						"oprice": "889",
						"discount": "4.2"
					},
					{
						"id": 8,
						"imgUrl": "../../static/img/lining.jpg",
						"name": "李宁（LI-NING）利刃2low丨篮球鞋男低帮透气实战专业球鞋稳定支撑耐磨运动鞋 标准白-11 41.5 (200mm)",
						"pprice": "549",
						"oprice": "689",
						"discount": "6.2"
					}

			]
		}]
	})
})
//运动户外第二次触底的数据
router.get('/api/index_list/2/data/3', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
			type: "commodityList",
			data: [{
					"id": 1,
					"imgUrl": "../../static/img/commodity1.jpg",
					"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
					"pprice": "299",
					"oprice": "659",
					"discount": "5.2"
				},
				{
					"id": 2,
					"imgUrl": "../../static/img/commodity2.jpg",
					"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
					"pprice": "499",
					"oprice": "759",
					"discount": "5.2"
				},
				{
					"id": 3,
					"imgUrl": "../../static/img/commodity3.jpg",
					"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
					"pprice": "369",
					"oprice": "889",
					"discount": "5.2"
				},
				{
					"id": 4,
					"imgUrl": "../../static/img/commodity4.jpg",
					"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
					"pprice": "369",
					"oprice": "759",
					"discount": "5.2"
				}

			]
		}]
	})
})
//运动户外第一次触底的数据
router.get('/api/index_list/2/data/2', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
			type: "commodityList",
			data: [{
					"id": 1,
					"imgUrl": "../../static/img/commodity1.jpg",
					"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
					"pprice": "299",
					"oprice": "659",
					"discount": "5.2"
				},
				{
					"id": 2,
					"imgUrl": "../../static/img/commodity2.jpg",
					"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
					"pprice": "499",
					"oprice": "759",
					"discount": "5.2"
				},
				{
					"id": 3,
					"imgUrl": "../../static/img/commodity3.jpg",
					"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
					"pprice": "369",
					"oprice": "889",
					"discount": "5.2"
				},
				{
					"id": 4,
					"imgUrl": "../../static/img/commodity4.jpg",
					"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
					"pprice": "369",
					"oprice": "759",
					"discount": "5.2"
				}

			]
		}]
	})
})
//运动户外第一次加载的数据
router.get('/api/index_list/2/data/1', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
				type: "bannerList",
				imgUrl: "../../static/img/banner1.jpg"
			},
			{
				type: "iconsList",
				data: [{
						imgUrl: "../../static/img/icons1.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons2.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons3.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons4.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons5.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons6.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons7.png",
						name: "运动户外"
					},
					{
						imgUrl: "../../static/img/icons8.png",
						name: "运动户外"
					}
				]
			},
			{
				type: "hotList",
				data: [{
						id: 1,
						imgUrl: "../../static/img/hot1.jpg",
						name: "在这个动感十足的时代，每一步都彰显着你的个性与态度。我们精心打造的男士运动鞋，不仅是为了奔跑，更是为了引领风尚，让每一步都成为街头的风景线。",
						pprice: "199",
						oprice: "349",
						discount: "6.0"
					},
					{
						id: 2,
						imgUrl: "../../static/img/hot2.jpg",
						name: "采用最新缓震科技，有效吸收落地冲击，保护双脚免受伤害。透气网面设计，让双脚即使在炎炎夏日也能享受自由呼吸，告别闷热，轻盈前行。",
						pprice: "230",
						oprice: "459",
						discount: "5.0"
					},
					{
						id: 3,
						imgUrl: "../../static/img/hot3.jpg",
						name: "经典黑、白、灰，或是大胆撞色，每一种色彩都是对自我风格的宣言。无论是简约低调还是张扬不羁，总有一款能触动你的心弦，让你在人群中脱颖而出。",
						pprice: "469",
						oprice: "849",
						discount: "4.9"
					}
				]

			},
			{
				type: "shopList",
				data: [{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					},
					{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					}
				]
			},
			{
				"type": "commodityList",
				"data": [{
						"id": 6,
						"imgUrl": "../../static/img/qixing.jpg",
						"name": "EG7山地自行车成人学生变速越野单车双减震赛车26寸青少年男女 顶配升级款-黑白色【辐条轮】 26寸21速【适合：160-180CM】",
						"pprice": "399",
						"oprice": "559",
						"discount": "5.0"
					},
					{
						"id": 5,
						"imgUrl": "../../static/img/taiqou.jpg",
						"name": "（上门安装）中式黑八大理石台球桌俱乐部台球厅商用标准型台球桌 9尺 大理石台面 金色豪配",
						"pprice": "1499",
						"oprice": "3759",
						"discount": "5.2"
					},
					{
						"id": 7,
						"imgUrl": "../../static/img/cfy.jpg",
						"name": "骆驼户外冲锋衣三合一可拆卸黑色百搭男女情侣登山服防风防水休闲外套保暖 CA6268灰色加绒三合一男款 2XL",
						"pprice": "369",
						"oprice": "889",
						"discount": "4.2"
					},
					{
						"id": 8,
						"imgUrl": "../../static/img/lining.jpg",
						"name": "李宁（LI-NING）利刃2low丨篮球鞋男低帮透气实战专业球鞋稳定支撑耐磨运动鞋 标准白-11 41.5 (200mm)",
						"pprice": "549",
						"oprice": "689",
						"discount": "6.2"
					}


				]
			}
		]
	})
});
//服饰内衣第一次加载的数据
router.get('/api/index_list/3/data/1', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
				type: "bannerList",
				imgUrl: "../../static/img/daneiyi.jpg"
			},
			{
				type: "iconsList",
				data: [{
						imgUrl: "../../static/img/icons1.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons2.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons3.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons4.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons5.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons6.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons7.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons8.png",
						name: "服饰内衣"
					}
				]
			},
			{
				type: "hotList",
				data: [{
						id: 1,
						imgUrl: "../../static/img/neiyi1.jpg",
						name: "云朵棉睡衣男春秋冬季薄款长袖长裤空调服棉绸中青年男士家居服 A323浅灰 XL 建议120-140斤",
						pprice: "129",
						oprice: "239",
						discount: "6.0"
					},
					{
						id: 2,
						imgUrl: "../../static/img/neiyi2.jpg",
						name: " 秋冬季珊瑚绒睡衣男士加厚加绒法兰绒大码青年家居服套装可外穿新 方块熊维蜜男开衫 XL码身高175左右体重130-150斤",
						pprice: "88",
						oprice: "139",
						discount: "5.0"
					},
					{
						id: 3,
						imgUrl: "../../static/img/neiyi3.jpg",
						name: "唯妮妙睡衣男冬季加厚夹棉毛绒保暖家居服青少年中老年棉袄爸爸冬天套装 ZF 2203咖啡 L（建议体重100-120）",
						pprice: "146",
						oprice: "245",
						discount: "4.9"
					}

				]
			},
			{
				type: "shopList",
				data: [{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					},
					{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					}
				]
			},
			{
				"type": "commodityList",
				"data": [{
						"id": 1,
						"imgUrl": "../../static/img/commodity1.jpg",
						"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
						"pprice": "299",
						"oprice": "659",
						"discount": "5.2"
					},
					{
						"id": 2,
						"imgUrl": "../../static/img/commodity2.jpg",
						"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
						"pprice": "499",
						"oprice": "759",
						"discount": "5.2"
					},
					{
						"id": 3,
						"imgUrl": "../../static/img/commodity3.jpg",
						"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
						"pprice": "369",
						"oprice": "889",
						"discount": "5.2"
					},
					{
						"id": 4,
						"imgUrl": "../../static/img/commodity4.jpg",
						"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
						"pprice": "369",
						"oprice": "759",
						"discount": "5.2"
					}

				]
			}
		]
	})
});
//鞋靴箱包第一次加载的数据
router.get('/api/index_list/4/data/1', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
				type: "bannerList",
				imgUrl: "../../static/img/banner1.jpg"
			},
			{
				type: "iconsList",
				data: [{
						imgUrl: "../../static/img/icons1.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons2.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons3.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons4.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons5.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons6.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons7.png",
						name: "鞋靴箱包"
					},
					{
						imgUrl: "../../static/img/icons8.png",
						name: "鞋靴箱包"
					}
				]
			},
			{
				type: "hotList",
				data: [{
						id: 1,
						imgUrl: "../../static/img/hot1.jpg",
						name: "在这个动感十足的时代，每一步都彰显着你的个性与态度。我们精心打造的男士运动鞋，不仅是为了奔跑，更是为了引领风尚，让每一步都成为街头的风景线。",
						pprice: "199",
						oprice: "349",
						discount: "6.0"
					},
					{
						id: 2,
						imgUrl: "../../static/img/hot2.jpg",
						name: "采用最新缓震科技，有效吸收落地冲击，保护双脚免受伤害。透气网面设计，让双脚即使在炎炎夏日也能享受自由呼吸，告别闷热，轻盈前行。",
						pprice: "230",
						oprice: "459",
						discount: "5.0"
					},
					{
						id: 3,
						imgUrl: "../../static/img/hot3.jpg",
						name: "经典黑、白、灰，或是大胆撞色，每一种色彩都是对自我风格的宣言。无论是简约低调还是张扬不羁，总有一款能触动你的心弦，让你在人群中脱颖而出。",
						pprice: "469",
						oprice: "849",
						discount: "4.9"
					}

				]
			},
			{
				type: "shopList",
				data: [{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					},
					{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					}
				]
			},
			{
				"type": "commodityList",
				"data": [{
						"id": 1,
						"imgUrl": "../../static/img/commodity1.jpg",
						"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
						"pprice": "299",
						"oprice": "659",
						"discount": "5.2"
					},
					{
						"id": 2,
						"imgUrl": "../../static/img/commodity2.jpg",
						"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
						"pprice": "499",
						"oprice": "759",
						"discount": "5.2"
					},
					{
						"id": 3,
						"imgUrl": "../../static/img/commodity3.jpg",
						"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
						"pprice": "369",
						"oprice": "889",
						"discount": "5.2"
					},
					{
						"id": 4,
						"imgUrl": "../../static/img/commodity4.jpg",
						"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
						"pprice": "369",
						"oprice": "759",
						"discount": "5.2"
					}

				]
			}
		]
	})
});
//美妆个护第一次加载的数据
router.get('/api/index_list/5/data/1', function(req, res, next) {
	res.json({
		code: "0",
		data: [{
				type: "bannerList",
				imgUrl: "../../static/img/banner1.jpg"
			},
			{
				type: "iconsList",
				data: [{
						imgUrl: "../../static/img/icons1.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons2.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons3.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons4.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons5.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons6.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons7.png",
						name: "服饰内衣"
					},
					{
						imgUrl: "../../static/img/icons8.png",
						name: "服饰内衣"
					}
				]
			},
			{
				type: "hotList",
				data: [{
						id: 1,
						imgUrl: "../../static/img/hot1.jpg",
						name: "在这个动感十足的时代，每一步都彰显着你的个性与态度。我们精心打造的男士运动鞋，不仅是为了奔跑，更是为了引领风尚，让每一步都成为街头的风景线。",
						pprice: "199",
						oprice: "349",
						discount: "6.0"
					},
					{
						id: 2,
						imgUrl: "../../static/img/hot2.jpg",
						name: "采用最新缓震科技，有效吸收落地冲击，保护双脚免受伤害。透气网面设计，让双脚即使在炎炎夏日也能享受自由呼吸，告别闷热，轻盈前行。",
						pprice: "230",
						oprice: "459",
						discount: "5.0"
					},
					{
						id: 3,
						imgUrl: "../../static/img/hot3.jpg",
						name: "经典黑、白、灰，或是大胆撞色，每一种色彩都是对自我风格的宣言。无论是简约低调还是张扬不羁，总有一款能触动你的心弦，让你在人群中脱颖而出。",
						pprice: "469",
						oprice: "849",
						discount: "4.9"
					}

				]
			},
			{
				type: "shopList",
				data: [{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					},
					{
						bigUrl: "../../static/img/shop.jpg",
						data: [{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "249",
								oprice: "629",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "219",
								oprice: "609",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "289",
								oprice: "699",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "219",
								oprice: "649",
								discount: "5.2"
							},
							{
								id: 1,
								imgUrl: "../../static/img/shop1.jpg",
								name: "精选优质材料，经过严格测试，确保每一双鞋都能经受住时间与距离的考验。无论是城市穿梭还是户外探险，它都是你最可靠的伙伴。",
								pprice: "199",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 2,
								imgUrl: "../../static/img/shop2.jpg",
								name: "无论是健身房的汗水挥洒，还是周末的休闲出游，亦或是办公室的轻松漫步，这款运动鞋都能完美融入，让你的每一步都充满自信与风采。",
								pprice: "139",
								oprice: "359",
								discount: "5.2"
							},
							{
								id: 3,
								imgUrl: "../../static/img/shop3.jpg",
								name: "现在就加入我们，穿上这双专为追求品质生活的你设计的男士运动鞋，开启一场关于速度、风格与自由的非凡之旅。因为，你脚下的路，应当由你来定义！",
								pprice: "219",
								oprice: "539",
								discount: "5.2"
							},
							{
								id: 4,
								imgUrl: "../../static/img/shop4.jpg",
								name: "流线型鞋身设计，搭配精致细节处理，无论是鞋面的拼接工艺还是鞋底的独特纹路，都展现出与众不同的时尚感。多种潮流配色，让你轻松驾驭各种风格，无论是商务休闲还是街头潮流，都能完美适配。",
								pprice: "139",
								oprice: "279",
								discount: "5.2"
							}
						]
					}
				]
			},
			{
				"type": "commodityList",
				"data": [{
						"id": 1,
						"imgUrl": "../../static/img/commodity1.jpg",
						"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
						"pprice": "299",
						"oprice": "659",
						"discount": "5.2"
					},
					{
						"id": 2,
						"imgUrl": "../../static/img/commodity2.jpg",
						"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
						"pprice": "499",
						"oprice": "759",
						"discount": "5.2"
					},
					{
						"id": 3,
						"imgUrl": "../../static/img/commodity3.jpg",
						"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
						"pprice": "369",
						"oprice": "889",
						"discount": "5.2"
					},
					{
						"id": 4,
						"imgUrl": "../../static/img/commodity4.jpg",
						"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
						"pprice": "369",
						"oprice": "759",
						"discount": "5.2"
					}

				]
			}
		]
	})
});
//首页(推荐)的数据
router.get("/api/index_list/data", function(req, res, next) {
	res.send({
		"code": 0,
		"data": {
			topBar: [{
					id: 1,
					name: '推荐'
				},
				{
					id: 2,
					name: '运动户外'
				},
				{
					id: 3,
					name: '服饰内衣'
				},
				{
					id: 4,
					name: '鞋靴箱包'
				},
				{
					id: 5,
					name: '美妆个护'
				},
			],
			data: [{
					type: "swiperList",
					data: [{
							imgUrl: '../../static/img/swiper1.jpg'
						},
						{
							imgUrl: '../../static/img/swiper2.jpg'
						},
						{
							imgUrl: '../../static/img/swiper3.jpg'
						}
					]
				},
				{
					type: "recommendList",
					data: [{
							bigUrl: "../../static/img/Children.jpg",
							data: [{
									imgUrl: "../../static/img/Children1.jpg"
								},
								{
									imgUrl: "../../static/img/Children2.jpg"
								},
								{
									imgUrl: "../../static/img/Children3.jpg"
								}
							]
						},
						{
							bigUrl: "../../static/img/Furnishing.jpg",
							data: [{
									imgUrl: "../../static/img/Furnishing1.jpg"
								},
								{
									imgUrl: "../../static/img/Furnishing2.jpg"
								},
								{
									imgUrl: "../../static/img/Furnishing3.jpg"
								}
							]
						}
					]
				},
				{
					type: "commodityList",
					data: [{
							"id": 1,
							"imgUrl": "../../static/img/commodity1.jpg",
							"name": "大衣绒毛爆款2024必须买，不买你就不行了，低调且奢华，华丽而优雅，美丽而富贵 爆款疯狂GG008",
							"pprice": "299",
							"oprice": "659",
							"discount": "5.2"
						},
						{
							"id": 2,
							"imgUrl": "../../static/img/commodity2.jpg",
							"name": "当寒风凛冽，一件好的棉衣是冬日里最贴心的伴侣。我们精选优质羽绒填充，轻盈而保暖，仿佛冬日里的一个小太阳，温暖你的每一寸肌肤。 爆款疯狂GG005",
							"pprice": "499",
							"oprice": "759",
							"discount": "5.2"
						},
						{
							"id": 3,
							"imgUrl": "../../static/img/commodity3.jpg",
							"name": "棉麻材质，透气亲肤，宽松的版型搭配精致的刺绣，每一步都散发着文艺小清新的气息。无论是漫步街头还是咖啡馆小憩，都能成为最独特的风景线爆款疯狂GG007",
							"pprice": "369",
							"oprice": "889",
							"discount": "5.2"
						},
						{
							"id": 4,
							"imgUrl": "../../static/img/commodity4.jpg",
							"name": "每一寸都透露着高贵与典雅，精致的剪裁勾勒出女性曼妙的身姿。高级丝绸面料，流光溢彩，搭配闪耀的珠饰细节，让你在晚宴中成为最耀眼的焦点。无论是婚礼还是重要庆典，都能完美驾驭。 爆款疯狂GG006",
							"pprice": "369",
							"oprice": "759",
							"discount": "5.2"
						}
					]
				}
			]
		}
	})
});

module.exports = router;